﻿using GamovMvc.Framework.Handlers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GamovMvc.Framework.Url
{
    public static class RouteExtend
    {
        public static void MapRoute(this IList<Route> routes, string urlTemplate, object defaults)
        {
            routes.Add(new Route(urlTemplate, defaults, handler => new MvcHandler(handler)));
        }
    }
}
